package com.egene.tw.utils;

import android.widget.Toast;

import com.egene.tw.AppContext;

public class MToast {
	private static Toast mToast;
	
	private static Toast getToast(){
		if(mToast == null){
			mToast = Toast.makeText(AppContext.context(), "", Toast.LENGTH_SHORT);
		}
		return mToast;
	}
	
	public static void show(String text){
		Toast toast = getToast();
		toast.setText(text);
		toast.show();
	}
	
	
	public static void show(int res){
		Toast toast = getToast();
		toast.setText(res);
		toast.show();
	}
}
